/*
 * FeedBuilder.java
 *
 * Created on July 17, 2007, 2:12 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.atomojo.app.client;

import org.infoset.xml.Document;
import org.infoset.xml.XMLException;

/**
 *
 * @author alex
 */
public class FeedBuilder extends FeedDestination
{

   Feed feed;
   
   /** Creates a new instance of FeedBuilder */
   public FeedBuilder()
   {
      feed = null;
   }
   
   public Feed getFeed() {
      return feed;
   }
   
   public void onFeed(Document doc)
      throws XMLException
   {
      feed = new Feed(doc);
   }
   
   public void onEntry(Document doc)
   {
      feed.add(new Entry(doc));
   }
   
}
